// jjcapView.h : interface of the CJjcapView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_JJCAPVIEW_H__0728BBF1_4D63_47E6_A02C_AC055715A566__INCLUDED_)
#define AFX_JJCAPVIEW_H__0728BBF1_4D63_47E6_A02C_AC055715A566__INCLUDED_

#include "JjcapData.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CJjcapDoc;
class CJjcapTreeView;
class CJjcapEditView;

class CJjcapView : public CListView
{
protected: // create from serialization only
	CJjcapView();
	DECLARE_DYNCREATE(CJjcapView)

// Attributes
public:
	CJjcapDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CJjcapView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	void ShowData(const cap_data* dat);
	CJjcapEditView* GetEditView();
	CJjcapTreeView* GetTreeView();
	virtual ~CJjcapView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CJjcapView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnClick(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in jjcapView.cpp
inline CJjcapDoc* CJjcapView::GetDocument()
   { return (CJjcapDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_JJCAPVIEW_H__0728BBF1_4D63_47E6_A02C_AC055715A566__INCLUDED_)
